﻿import request from '@/utils/request'

// Fetch factory options for the dropdown
export function getFactoryList() {
  return request({
    url: '/operation/web/operationMobileConfig/factoryList',
    method: 'get'
  })
}

// Query mobile configuration list
export function listMobileConfig(params) {
  return request({
    url: '/operation/web/operationMobileConfig/list',
    method: 'get',
    params
  })
}

// Retrieve mobile configuration detail
export function getMobileConfig(mobileConfigId) {
  return request({
    url: `/operation/web/operationMobileConfig/${mobileConfigId}`,
    method: 'get'
  })
}

// Create mobile configuration
export function addMobileConfig(data) {
  return request({
    url: '/operation/web/operationMobileConfig',
    method: 'post',
    data
  })
}

// Update mobile configuration
export function updateMobileConfig(data) {
  return request({
    url: '/operation/web/operationMobileConfig',
    method: 'put',
    data
  })
}

// Delete mobile configuration by ids
export function deleteMobileConfig(mobileConfigIds) {
  return request({
    url: `/operation/web/operationMobileConfig/${mobileConfigIds}`,
    method: 'delete'
  })
}
